package com.hanamaki.struct;

public class BreakDemo01 {
    public static void main(String[] args) {

        /**
         * break 终止循环
         */
        for (int i = 0; i < 100; i++) {
            if (i == 30) {
                break;
            }
            System.out.println(i);
        }


    }
}
